package com.quan.xczs.rpc.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.quan.base.common.base.service.support.BaseService;
import com.quan.base.common.exception.BizException;
import com.quan.xczs.rpc.api.XczsGoodsGroupGoodsService;
import com.quan.xczs.rpc.api.XczsGoodsGroupService;
import com.quan.xczs.rpc.dao.mapper.XczsGoodsGroupMapper;
import com.quan.xczs.rpc.model.XczsGoodsGroup;

@Service
public class XczsGoodsGroupServiceImpl extends BaseService<XczsGoodsGroup, Integer> implements XczsGoodsGroupService {
	
	@Autowired
	private XczsGoodsGroupMapper mapper ;
	
	@Autowired
	private XczsGoodsGroupGoodsService xczsGoodsGroupGoodsService ;
	
	@Override
	public int delete(Integer id) throws BizException {
		this.xczsGoodsGroupGoodsService.deleteByGoodsGroupId(id);
		return super.delete(id);
	}

}
